﻿using AdminBase.Model.Entitys;
using Newtonsoft.Json;

namespace AdminBase.Model
{
    /// <summary>
    /// 用户模型扩展
    /// </summary>
    public class UsersDto : Users
    {
        /// <summary>
        /// 部门名
        /// </summary>
        [JsonProperty("departmentName")]
        public string? DepartmentName { get; set; }

        /// <summary>
        /// 头像地址
        /// </summary>
        [JsonProperty("avatarUrl")]
        public string? AvatarUrl { get; set; }

        /// <summary>
        /// 角色
        /// </summary>
        [JsonProperty("roles")]
        public List<long> Roles { get; set; } = new List<long>();

        /// <summary>
        /// 角色名 列表
        /// </summary>
        [JsonProperty("rolesName")]
        public List<string> RolesName { get; set; } = new List<string>();

        /// <summary>
        /// 权限字符合集
        /// </summary>
        [JsonProperty("permissions")]
        public List<string> Permissions { get; set; } = new List<string>();
    }
}
